package com.wechat.wins.handler;

import java.lang.reflect.Method;

public class RequestMappingHandlerContext {


    private final RequestHandler hadler;

    public RequestMappingHandlerContext(final RequestHandler handler) {
        this.hadler = handler;
    }

    public void registerMapping(final Class<?> clazz, final String url, final Method method) {
        if (this.hadler == null) {
            return;
        }
        this.hadler.register(clazz, url, method);
    }
}
